import type { GoodsResult } from "@/types/goods"
import { getAction } from "@/utils/http"

/**
 * 商品信息
 */
export const getGoodsByIdAPI = (id:string) => {
    return getAction<GoodsResult>({
      url: '/goods',
      data: {
        id
      }
    })
  }
